Implement YStripesPointInAreaLocator - #1145
Conversation
|
Corpus PIP gallery gate against this PR's Y-stripe algorithm (NetTopologySuite.Proofs). What we checkedFaithful port of Write-up + table: jts-1145-pip-lane (corpus PR #451) Results (14/14)
Also bit-equal to Indexed and Simple on every row (no locator split). Suggestion
No objection on soundness from this corpus gate. Port risk residual: Java tip not executed under JVM here (C# line-faithful port + NTS (Affiliation: NetTopologySuite.Proofs — formal companion, not a JTS committer review.) |
A faster point-in-area locator.
IndexedPointInAreaLocator(4x+ in my various tests).AbstractPointInRingTesttests.It's packaged such that the core polygon algo (
YStripesPointInPolygonLocator) is defined in its own non-public class, then theAreavariant constructs PolygonLocators for each Polygon in a Geometry, indexed via an STRtree.The name could be changed too. Of course this too is an indexed PointInAreaLocator, but that exact name is taken.